<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<link rel="STYLESHEET" type="text/css" href="${pageContext.request.contextPath}/dhtmlxTree/codebase/dhtmlxtree.css">
<script  src="${pageContext.request.contextPath}/dhtmlxTree/codebase/dhtmlxcommon.js"></script>
<script  src="${pageContext.request.contextPath}/dhtmlxTree/codebase/dhtmlxtree.js"></script>
<script src="${pageContext.request.contextPath}/dhtmlxTree/codebase/ext/dhtmlxtree_ed.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/dhtmlxTree/codebase/dhtmlxdataprocessor.js"></script> 

</head>
<body>
<h2>为 <s:property value="user.username"/> 分配菜单</h2>
<div id="treeboxbox_tree" style="width:350px; height:218px;background-color:#f5f5f5;border :1px solid Silver; overflow:auto;"></div>

<script>


	tree=new dhtmlXTreeObject("treeboxbox_tree","100%","100%",0);
	tree.setImagePath("${pageContext.request.contextPath}/dhtmlxTree/codebase/imgs/csh_bluebooks/");
	tree.enableCheckBoxes(1);

	tree.enableThreeStateCheckboxes(true);

	// enable editing on doubleclick
	// tree.enableItemEditor(true);
	// set validator function
	//tree.setOnEditHandler(m_func);
				
	
				
	tree.loadXML("menuTreeData");

	// tree.init();

	// myDataProcessor = new dataProcessor("${pageContext.request.contextPath}/updateTreeData"); 
	// myDataProcessor.init(tree); 


</script>
</body>
</html>